# coding:utf-8

class NotPathError(Exception):
    def __init__(self,message):
        self.message = message    # 成员变量实例化

class FormatError(Exception):
    def __init__(self,message ='need json format'):
        self.message = message


class NotFileError(Exception):
    def __init__(self,message='this is a not file'):
        self.message = message


class UserExistsError(Exception):
    def __init__(self,message):
        self.message = message

class RoleError(Exception):
    def __init__(self,message):
        self.message = message

class LevelError(Exception):
    def __init__(self,message):
        self.message = message

class NegativeNumberError(Exception):
    def __init__(self,message):
        self.message = message

class NotUserError(Exception):
    def __init__(self, message):
        self.message = message

class UserActiveError(Exception):
    def __init__(self, message):
        self.message = message

class CountError(Exception):
    def __init__(self, message):
        self.message = message
